# -*- conding:utf-8 -*-

"""
@author: PoXiao
@file: intersection.py
@time: 2019/3/20 0020 15:03

"""

def intersection(list1, list2):
    for i in range(1, 5):
        for j in range(1, 5):
            if (list2[j] == list1[i]) and (list2[j] != -1):
                number = list2[j]
                return number
            else:
                number = 0

    return number

